<template>
  <div class="layout-padding">
    <div class="layout-padding-auto layout-padding-view">
      <div class="center">
        <el-form ref="dicDialogFormRef" :model="state.ruleForm" label-width="110px">
          <el-form-item label="样点调查数据">
            <el-select v-model="state.ruleForm.name">
              <el-option label="有机质" value="1" />
              <el-option label="有效磷" value="2" />
            </el-select>
          </el-form-item>
          <el-form-item label="统计指标">
            <el-checkbox-group v-model="state.ruleForm.tj">
              <el-checkbox label="有机质" value="1" />
              <el-checkbox label="有效磷" value="2" />
              <el-checkbox label="速效钾" value="3" />
              <el-checkbox label="有效锌" value="4" />
              <el-checkbox label="土壤容重" value="5" />
              <el-checkbox label="有效氮" value="6" />
            </el-checkbox-group>
          </el-form-item>
          <el-form-item label="特征分析">
            <el-row :gutter="20">
              <el-col :span="6">
                <el-checkbox-group v-model="state.ruleForm.kj">
                  <el-checkbox label="全局异常" value="1" />
                  <el-checkbox label="局部异常" value="2" />
                </el-checkbox-group>
              </el-col>
              <el-col :span="6">
                <el-checkbox-group v-model="state.ruleForm.sj">
                  <el-checkbox label="时序全局异常" value="1" />
                  <el-checkbox label="时序局部异常" value="2" />
                </el-checkbox-group>
              </el-col>
              <el-col :span="6">
                <el-checkbox-group v-model="state.ruleForm.sk">
                  <el-checkbox label="时空局异常" value="1" />
                  <el-checkbox label="时空局部异常" value="2" />
                </el-checkbox-group>
              </el-col>
            </el-row>
          </el-form-item>
          <div class="text-center">
            <el-button type="primary" @click="onSubmit">异常分析</el-button>
          </div>
        </el-form>
      </div>
    </div>
  </div>
</template>

<script lang="ts" setup name="skycfxTask">
import { reactive } from 'vue';
import { useRouter } from 'vue-router';

const router = useRouter();

const state = reactive({
  ruleForm: {} as any,
  loading: false,
});

const onSubmit = () => {
  router.push({ path: '/xtcl/sjycfx/skycfx/result' });
};
</script>

<style lang="scss" scoped>
.center {
  width: 1080px;
  margin: 0 auto;
}
.text-center {
  text-align: center;
}
</style>
